package com.luckyframe.project.jmeter.jmeterTestPlanRecord.domain;

import com.luckyframe.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * j测试计划执行记录表 jmeter_test_plan_record
 * 
 * @author lancelot
 * @date 2020-11-02
 */
public class JmeterTestPlanRecord extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Long id;
	/** 0 计划维度 1 用例维度 */
	private Integer type;
	/** 父id */
	private Long parentId;
	/** 关联的test_case的id */
	private Long relCaseId;
	/** 用例name */
	private String relCaseName;
	/** 关联的test_plan的id */
	private Long relPlanId;
	/** 计划name */
	private String relPlanName;
	/** 执行状态0 未开始 1执行中 2执行成功 3执行失败 */
	private Integer status;
	/** 异常信息 */
	private String errorMsg;
	/** 开始时间 */
	private Date startTime;
	/** 结束时间 */
	private Date endTime;
	/** 结果数据，json根式 */
	private String resultData;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 修改时间 */
	private Date updateTime;
	/** 备注 */
	private String remark;

	private String duration;


	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}


	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setType(Integer type) 
	{
		this.type = type;
	}

	public Integer getType() 
	{
		return type;
	}
	public void setParentId(Long parentId) 
	{
		this.parentId = parentId;
	}

	public Long getParentId() 
	{
		return parentId;
	}
	public void setRelCaseId(Long relCaseId) 
	{
		this.relCaseId = relCaseId;
	}

	public Long getRelCaseId() 
	{
		return relCaseId;
	}
	public void setRelCaseName(String relCaseName) 
	{
		this.relCaseName = relCaseName;
	}

	public String getRelCaseName() 
	{
		return relCaseName;
	}
	public void setRelPlanId(Long relPlanId) 
	{
		this.relPlanId = relPlanId;
	}

	public Long getRelPlanId() 
	{
		return relPlanId;
	}
	public void setRelPlanName(String relPlanName) 
	{
		this.relPlanName = relPlanName;
	}

	public String getRelPlanName() 
	{
		return relPlanName;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setErrorMsg(String errorMsg) 
	{
		this.errorMsg = errorMsg;
	}

	public String getErrorMsg() 
	{
		return errorMsg;
	}
	public void setStartTime(Date startTime) 
	{
		this.startTime = startTime;
	}

	public Date getStartTime() 
	{
		return startTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}

	public String getResultData() {
		return resultData;
	}

	public void setResultData(String resultData) {
		this.resultData = resultData;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("parentId", getParentId())
            .append("relCaseId", getRelCaseId())
            .append("relCaseName", getRelCaseName())
            .append("relPlanId", getRelPlanId())
            .append("relPlanName", getRelPlanName())
            .append("status", getStatus())
            .append("errorMsg", getErrorMsg())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("resultData", getResultData())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
